/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Visual;

/**
 *
 * @author Administrador
 */
public class MenuPrincipal extends javax.swing.JFrame {

    /**
     * Creates new form MenuPrincipal
     */
    public MenuPrincipal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem1 = new javax.swing.JMenuItem();
        miEscritorio = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        arsds = new javax.swing.JMenu();
        asdas = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        jMenuItem1.setText("jMenuItem1");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        javax.swing.GroupLayout miEscritorioLayout = new javax.swing.GroupLayout(miEscritorio);
        miEscritorio.setLayout(miEscritorioLayout);
        miEscritorioLayout.setHorizontalGroup(
            miEscritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 570, Short.MAX_VALUE)
        );
        miEscritorioLayout.setVerticalGroup(
            miEscritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 316, Short.MAX_VALUE)
        );

        arsds.setText("File");
        arsds.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                arsdsActionPerformed(evt);
            }
        });

        asdas.setText("Cliente");
        asdas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                asdasActionPerformed(evt);
            }
        });
        arsds.add(asdas);

        jMenuBar1.add(arsds);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(miEscritorio)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(miEscritorio)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void asdasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_asdasActionPerformed
         miCliente unCliente= new miCliente();
        miEscritorio.add(unCliente);
        unCliente.setVisible(true);
    }//GEN-LAST:event_asdasActionPerformed

    private void arsdsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arsdsActionPerformed
    
    }//GEN-LAST:event_arsdsActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu arsds;
    private javax.swing.JMenuItem asdas;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JDesktopPane miEscritorio;
    // End of variables declaration//GEN-END:variables
}
